package com.zxl.grocery.microservice.crawler;

import com.zxl.grocery.microservice.auth.client.EnableGroceryAuthClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author: Lzx
 * @Description:
 * @Date: Created in 15:11 2018/1/4
 * @Modified By:
 */
@SpringBootApplication
@EnableEurekaClient
// 开启druid监控
@ServletComponentScan("com.zxl.grocery.microservice.crawler.config.druid")
// 开启事务
@EnableTransactionManagement
// 开启熔断监控
@EnableCircuitBreaker
// 开启服务鉴权
@EnableFeignClients({"com.zxl.grocery.microservice.auth.client.feign"})
@EnableGroceryAuthClient
public class CrawlerBootstarp {
    public static void main(String[] args) {
        SpringApplication.run(CrawlerBootstarp.class,args);
    }
}
